<?php
// 基本的一个GET 接口模板
header("Content-type:application/json");
$data = array(
    array('name' => '张三', 'age' => 25, 'gender' => '男', 'address' => '北京市朝阳区'),
    array('name' => '李四', 'age' => 30, 'gender' => '女', 'address' => '上海市浦东新区'),
    array('name' => '王五', 'age' => 28, 'gender' => '男', 'address' => '广州市天河区'),
    array('name' => '赵六', 'age' => 32, 'gender' => '女', 'address' => '深圳市福田区'),
    array('name' => '钱七', 'age' => 27, 'gender' => '男', 'address' => '南京市鼓楼区')
  );
echo json_encode($data);